package com.cropdoctor.service;

import com.cropdoctor.common.Result;
import com.cropdoctor.model.constants.PageParams;
import com.cropdoctor.model.dto.AddOrUpdateVegeFrutableDto;
import com.cropdoctor.model.po.CategoryPo;
import com.cropdoctor.model.po.VegeFrutablePo;
import com.cropdoctor.model.vo.VegeFrutableVO;

import java.io.IOException;
import java.util.List;


public interface VegeFruTableService {
    Result<VegeFrutablePo> getByVegeFruId(int idTable);

    Result<List<CategoryPo>> getCategories(String mt);

    Result<String> delCategories(Long id);

    Result<String> editCategories(CategoryPo categoryPo);

    Result<String> addCategories(CategoryPo categoryPo);

    Result<VegeFrutableVO> getVegeFruList(String mt, String st, String keyword, PageParams pageParams);

    Result<String> addOrUpdateVegeFru(AddOrUpdateVegeFrutableDto AddOrUpdateVegeFrutableDto);

    Result<String> delVegeFru(long id);
}
